const app = require("./src/app");
//======================================================加载模块
//gem loader都是加载模块的方法，两者没有区别
app.use("gem",global.loader);
//时间模块
app.use("date",loader('fun').date);
//时间戳模块
app.use("time",loader('fun').time);
//异步全局变量模块
app.use("yb","async_global");
//清除控制台
app.use("clear",()=>{process.stdout.write(process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H')})

//mysql数据库操纵模块，true：需要启动
app.use("DB","mysql",true);
//运行路由
app.use("run_route",true)
//热部署模块
app.use("monitor",true)
//注解模块
app.use("auto_load",true);

//启动web服务
app.start();
